/*
 * Receiver
 *
 * Author: Hanno Braun
 */

package sv.net2;



/**
 * Handles received network message.
 * All methods are called by NetConnection if a message has been received.
 */

public interface Receiver {
	
	/**
	 * Opponent is ready.
	 */
	
	public void ready();
	
	
	
	/**
	 * Opponent has shot.
	 */
	
	public void shoot(byte field);
	
	
	
	/**
	 * Shot has hit water.
	 */
	
	public void hitWater(byte field);
	
	
	
	/**
	 * Shot has hit a ship.
	 */
	
	public void hitShip(byte field);
	
	
	
	/**
	 * Shot has destroyed a ship.
	 */
	
	public void destroyedShip(byte field);
	
	
	
	
	/**
	 * Opponent has lost.
	 */
	
	public void lostGame();
	
	
	
	/**
	 * Critical error occured.
	 */
	
	public void criticalError(Exception e);
}
